package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationVo;

import java.time.LocalDateTime;

public interface ReservationService {
    /**
     * 新增预约
     * @param reservationDto
     */
    void addReservation(ReservationDto reservationDto);

    /**
     * 查询预约列表
     * @param pageNum
     * @param pageSize
     * @param status
     * @return
     */
    PageResponse<ReservationVo> page(int pageNum, int pageSize, String name, String phone, Integer status, Integer type, LocalDateTime startTime, LocalDateTime endTime);

    /**
     * 按照时间修改过期的预约
     * @param now
     */
    void updateReservationStatus(LocalDateTime now);

    /**
     * 取消预约
     */
    void cancelReservation(Long id);

}
